<template>
<!-- 平衡帐 -->
  <div class="balance_account">
    <el-form :inline="true" :model="elform" class="demo-form-inline" size="mini">
      <el-form-item label="部门:" label-width="40px">
        <el-select
          v-model="departmentGuid"
          placeholder="请选择"
          size="mini"
          clearable
          @change="selectdepartment"
        >
          <el-option
            v-for="item in departmentoptions"
            :key="item.value"
            :label="item.label"
            :value="item.value"
          ></el-option>
        </el-select>
      </el-form-item>
      <el-form-item label="姓名/编号:" label-width="70px">
        <el-input v-model="userName" placeholder="名称" size="mini" clearable></el-input>
      </el-form-item>
      <el-form-item label="账期:" label-width="40px">
        <el-select
          v-model="paymentdays"
          placeholder="请选择"
          size="mini"
          clearable
          @change="selectdepartment"
        >
          <el-option
            v-for="item in paymentdaysoption"
            :key="item.value"
            :label="item.label"
            :value="item.value"
          ></el-option>
        </el-select>
      </el-form-item>
      <el-form-item label="日期:" label-width="40px">
        <el-date-picker
          @change="selecttime"
          v-model="datetime"
          type="datetimerange"
          :picker-options="pickerOptions"
          range-separator="至"
          start-placeholder="开始日期"
          end-placeholder="结束日期"
          value-format="yyyy-MM-dd HH:mm:ss"
          :default-time="['00:00:00', '23:59:59']"
          align="right"
        ></el-date-picker>
      </el-form-item>
    </el-form>
    <el-form :inline="true" :model="elform" class="demo-form-inline1">
      <el-form-item class="searchmarigin">
        <el-button type="primary" @click="onSubmit" size="mini" icon="el-icon-search">查询</el-button>
      </el-form-item>
      <el-form-item>
        <el-button type="primary" @click="onExport" size="mini" icon="el-icon-document-copy">导出</el-button>
      </el-form-item>
      <el-form-item>
        <el-popover width="500" placement="top" trigger="click">
          <el-row>
            <el-checkbox
              style="width:10%"
              :label="formThead.userName.label"
              v-model="formThead.userName.checked"
              @change="checkboxChanged()"
            ></el-checkbox>
            <el-checkbox
              style="width:10%"
              :label="formThead.userNumber.label"
              v-model="formThead.userNumber.checked"
              @change="checkboxChanged()"
            ></el-checkbox>
            <el-checkbox
              style="width:10%"
              :label="formThead.depositMoney.label"
              v-model="formThead.depositMoney.checked"
              @change="checkboxChanged()"
            ></el-checkbox>
            <el-checkbox
              style="width:10%"
              :label="formThead.expenditureSum.label"
              v-model="formThead.expenditureSum.checked"
              @change="checkboxChanged()"
            ></el-checkbox>
          </el-row>
          <el-row>
            <el-checkbox
              style="width:20%"
              :label="formThead.expenditureNot.label"
              v-model="formThead.expenditureNot.checked"
              @change="checkboxChanged()"
            ></el-checkbox>
            <el-checkbox
              style="width:10%"
              :label="formThead.expenditureRefund.label"
              v-model="formThead.expenditureRefund.checked"
              @change="checkboxChanged()"
            ></el-checkbox>
            <el-checkbox
              style="width:10%"
              :label="formThead.drawExpenditure.label"
              v-model="formThead.drawExpenditure.checked"
              @change="checkboxChanged()"
            ></el-checkbox>
            <el-checkbox
              style="width:10%"
              :label="formThead.freezeExpenditure.label"
              v-model="formThead.freezeExpenditure.checked"
              @change="checkboxChanged()"
            ></el-checkbox>
          </el-row>
          <el-row>
            <el-checkbox
              style="width:10%"
              :label="formThead.makeUpBadExpenditure.label"
              v-model="formThead.makeUpBadExpenditure.checked"
              @change="checkboxChanged()"
            ></el-checkbox>
            <el-checkbox
              style="width:10%"
              :label="formThead.profitLossBalance.label"
              v-model="formThead.profitLossBalance.checked"
              @change="checkboxChanged()"
            ></el-checkbox>
            <el-checkbox
              style="width:10%"
              :label="formThead.reviseExpenditure.label"
              v-model="formThead.reviseExpenditure.checked"
              @change="checkboxChanged()"
            ></el-checkbox>
            <el-checkbox
              style="width:10%"
              :label="formThead.badExpenditure.label"
              v-model="formThead.badExpenditure.checked"
              @change="checkboxChanged()"
            ></el-checkbox>
          </el-row>
          <el-row>
            <el-checkbox
              style="width:20%"
              :label="formThead.cardOriginBalance.label"
              v-model="formThead.cardOriginBalance.checked"
              @change="checkboxChanged()"
            ></el-checkbox>
            <el-checkbox
              style="width:10%"
              :label="formThead.newTotalBalance.label"
              v-model="formThead.newTotalBalance.checked"
              @change="checkboxChanged()"
            ></el-checkbox>
            <el-checkbox
              style="width:10%"
              :label="formThead.cardBalance.label"
              v-model="formThead.cardBalance.checked"
              @change="checkboxChanged()"
            ></el-checkbox>
          </el-row>
          <el-button slot="reference" size="mini" type="primary" icon="el-icon-edit-outline">自定义</el-button>
        </el-popover>
      </el-form-item>
    </el-form>
    <div calss="tablemain">
      <el-table
        v-loading="loading"
        :data="detailslist"
        ref="table"
        border
        highlight-current-row
        :header-cell-style="headFirst"
        style="width: 100%"
      >
        <el-table-column prop="userName" label="姓名" v-if="formThead.userName.checked"></el-table-column>
        <el-table-column prop="userNumber" label="编号" v-if="formThead.userNumber.checked" min-width="110px"></el-table-column>
        <el-table-column prop="depositMoney" label="存款总额" v-if="formThead.depositMoney.checked">
          <template slot-scope="scope">
            <div>{{scope.row.depositMoney | amountyuan}}</div>
          </template>
        </el-table-column>
        <el-table-column prop="expenditureSum" label="消费总额" v-if="formThead.expenditureSum.checked">
          <template slot-scope="scope">
            <div>{{scope.row.expenditureSum | amountyuan}}</div>
          </template>
        </el-table-column>
        <el-table-column
          prop="expenditureNot"
          label="未处理的非确定交易"
          v-if="formThead.expenditureNot.checked"
        >
          <template slot-scope="scope">
            <div>{{scope.row.expenditureNot | amountyuan}}</div>
          </template>
        </el-table-column>
        <el-table-column
          prop="expenditureRefund"
          label="退款总额"
          v-if="formThead.expenditureRefund.checked"
        >
          <template slot-scope="scope">
            <div>{{scope.row.expenditureRefund | amountyuan}}</div>
          </template>
        </el-table-column>
        <el-table-column
          prop="drawExpenditure"
          label="取款总额"
          v-if="formThead.drawExpenditure.checked"
        >
          <template slot-scope="scope">
            <div>{{scope.row.drawExpenditure | amountyuan}}</div>
          </template>
        </el-table-column>
        <el-table-column
          prop="freezeExpenditure"
          label="补冻总额"
          v-if="formThead.freezeExpenditure.checked"
        >
          <template slot-scope="scope">
            <div>{{scope.row.freezeExpenditure | amountyuan}}</div>
          </template>
        </el-table-column>
        <el-table-column
          prop="makeUpBadExpenditure"
          label="补坏总额"
          v-if="formThead.makeUpBadExpenditure.checked"
        >
          <template slot-scope="scope">
            <div>{{scope.row.makeUpBadExpenditure | amountyuan}}</div>
          </template>
        </el-table-column>
        <el-table-column
          prop="profitLossBalance"
          label="损益总额"
          v-if="formThead.profitLossBalance.checked"
        >
          <template slot-scope="scope">
            <div>{{scope.row.profitLossBalance | amountyuan}}</div>
          </template>
        </el-table-column>
        <el-table-column
          prop="reviseExpenditure"
          label="修正总额"
          v-if="formThead.reviseExpenditure.checked"
        >
          <template slot-scope="scope">
            <div>{{scope.row.reviseExpenditure | amountyuan}}</div>
          </template>
        </el-table-column>
        <el-table-column prop="badExpenditure" label="坏账总额" v-if="formThead.badExpenditure.checked">
          <template slot-scope="scope">
            <div>{{scope.row.badExpenditure | amountyuan}}</div>
          </template>
        </el-table-column>
        <el-table-column
          prop="cardOriginBalance"
          label="消费账期钱卡余额"
          v-if="formThead.cardOriginBalance.checked"
        >
          <template slot-scope="scope">
            <div>{{scope.row.cardOriginBalance | amountyuan}}</div>
          </template>
        </el-table-column>
        <el-table-column
          prop="newTotalBalance"
          label="合计账上余额"
          v-if="formThead.newTotalBalance.checked"
        >
          <template slot-scope="scope">
            <div>{{scope.row.newTotalBalance | amountyuan}}</div>
          </template>
        </el-table-column>
        <el-table-column prop="cardBalance" label="卡上余额" v-if="formThead.cardBalance.checked">
          <template slot-scope="scope">
            <div>{{scope.row.cardBalance | amountyuan}}</div>
          </template>
        </el-table-column>
      </el-table>
      <div class="page">
        <el-pagination
          @size-change="handleSizeChange"
          @current-change="handleCurrentChangepage"
          :current-page="currentPage"
          :page-sizes="[10, 20, 30, 40]"
          :page-size="pageSize"
          layout="total, sizes, prev, pager, next, jumper"
          :total="recordCount"
        ></el-pagination>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      elform: {},
      departmentGuid: "",
      departmentoptions: [],
      searchInfo2: {},
      userName: "",
      datetime: "",
      pickerOptions: {
        shortcuts: [
          {
            text: "最近一周",
            onClick(picker) {
              const end = new Date();
              const start = new Date();
              start.setTime(start.getTime() - 3600 * 1000 * 24 * 7);
              picker.$emit("pick", [start, end]);
            },
          },
          {
            text: "最近一个月",
            onClick(picker) {
              const end = new Date();
              const start = new Date();
              start.setTime(start.getTime() - 3600 * 1000 * 24 * 30);
              picker.$emit("pick", [start, end]);
            },
          },
          {
            text: "最近三个月",
            onClick(picker) {
              const end = new Date();
              const start = new Date();
              start.setTime(start.getTime() - 3600 * 1000 * 24 * 90);
              picker.$emit("pick", [start, end]);
            },
          },
        ],
      },
      paymentdays: "",
      paymentdaysoption: [],

      detailslist: [],
      loading: false,
      pageNum: 1,
      pageSize: 10,
      currentPage: 1,
      recordCount: 0,
      searchInfo: {},
      formThead: {
        userName: { label: "姓名", prop: "userName", checked: true },
        userNumber: { label: "编号", prop: "userNumber", checked: true },
        depositMoney: {
          label: "存款总额",
          prop: "depositMoney",
          checked: true,
        },
        expenditureSum: {
          label: "消费总额",
          prop: "expenditureSum",
          checked: true,
        },
        expenditureNot: {
          label: "未处理的非确定交易",
          prop: "expenditureNot",
          checked: true,
        },
        expenditureRefund: {
          label: "退款总额",
          prop: "expenditureRefund",
          checked: true,
        },
        drawExpenditure: {
          label: "取款总额",
          prop: "drawExpenditure",
          checked: true,
        },
        freezeExpenditure: {
          label: "补冻总额",
          prop: "freezeExpenditure",
          checked: true,
        },
        makeUpBadExpenditure: {
          label: "补坏总额",
          prop: "makeUpBadExpenditure",
          checked: true,
        },
        profitLossBalance: {
          label: "损益总额",
          prop: "profitLossBalance",
          checked: true,
        },
        reviseExpenditure: {
          label: "修正总额",
          prop: "reviseExpenditure",
          checked: true,
        },
        badExpenditure: {
          label: "坏账总额",
          prop: "badExpenditure",
          checked: true,
        },
        cardOriginBalance: {
          label: "消费账期钱卡余额",
          prop: "cardOriginBalance",
          checked: true,
        },
        newTotalBalance: {
          label: "合计账上余额",
          prop: "newTotalBalance",
          checked: true,
        },
        cardBalance: { label: "卡上余额", prop: "cardBalance", checked: true },
      },
      detailslistExportlist: [],
      filename: "平衡账列表",
    };
  },
  created() {
    this.datetime = [
      this.getNowTime("yy-mm-dd hh:mm:ss 01-00"),
      this.getNowTime("yy-mm-dd 59"),
    ];
  },
  mounted() {
    this.departmentselectlist();
    this.consumepaymentpage();
  },
  computed: {
    changeschoolid: {
      get() {
        return this.$store.state.user.changeschoolid;
      },
    },
  },
  methods: {
    //部门选择
    departmentselectlist() {
      this.departmentoptions = [];
      this.$http({
        url: this.$http.adornUrl("/department/query-department-info"),
        method: "post",
        data: this.$http.adornData({
          messageContent: {
            unitGuid: this.changeschoolid,
          },
          messageType: 0,
        }),
      }).then(({ data }) => {
        if (data.messageCode == 200) {
          console.log(data);
          let Arr = data.messageContent;
          for (var i = 0; i < Arr.length; i++) {
            let itemobj = {
              value: Arr[i].departmentGuid,
              label: Arr[i].departmentName,
            };
            this.departmentoptions.push(itemobj);
          }
        } else {
          this.$message.error(data.errorMessage);
        }
      });
    },
    //账期查询
    consumepaymentpage() {
      this.searchInfo2.unitGuid = this.changeschoolid;
      this.$http({
        url: this.$http.adornUrl("/terminal/consume/payment-day-page"),
        method: "post",
        data: this.$http.adornData({
          messageContent: {
            pageNum: this.pageNum,
            pageSize: 9999,
            searchInfo: this.searchInfo2,
          },
          messageType: 0,
        }),
      }).then(({ data }) => {
        console.log(data);
        if (data.messageCode == 200) {
          for (var i = 0; i < data.messageContent.data.length; i++) {
            let itemobj = {
              value: data.messageContent.data[i].paymentGuid,
              label: data.messageContent.data[i].paymentName,
            };
            this.paymentdaysoption.push(itemobj);
          }
        } else {
          this.$message.error(data.errorMessage);
        }
      });
    },
    selectdepartment() {},
    selecttime() {},
    onSubmit() {
      this.pageNum = 1;
      this.searchInfo = {};
      this.searchInfo.unitGuid = this.changeschoolid;
      if (this.departmentGuid != "" && this.departmentGuid != null) {
        this.searchInfo.departmentGuid = this.departmentGuid;
      }
      if (this.userName != "" && this.userName != null) {
        this.searchInfo.userName = this.userName;
      }
      if (this.paymentdays != "" && this.paymentdays != null) {
        this.searchInfo.paymentGuid = this.paymentdays;
      } else {
        this.$message({
          message: "请选择账期再查询",
          type: "warning",
        });
        return;
      }

      this.detailspage();
    },
    onExport() {
      if (this.detailslist.length == 0) {
        this.$message({
          message: "查询数据后导出",
          type: "warning",
        });
        return false;
      }
      this.outexecel();
    },
    outexecel() {
      this.$http({
        url: this.$http.adornUrl("/terminal/consume/consume-balance-search"),
        method: "post",
        data: this.$http.adornData({
          messageContent: {
            pageNum: 1,
            pageSize: this.recordCount,
            searchInfo: this.searchInfo,
          },
          messageType: this.messageType,
        }),
      }).then(({ data }) => {
        if (data.messageCode === 200) {
          this.detailslistExportlist = data.messageContent.data;
          for (var i = 0; i < this.detailslistExportlist.length; i++) {
            this.detailslistExportlist[i].depositMoney = this.amountyua(
              this.detailslistExportlist[i].depositMoney
            );
            this.detailslistExportlist[i].expenditureSum = this.amountyua(
              this.detailslistExportlist[i].expenditureSum
            );
            this.detailslistExportlist[i].expenditureNot = this.amountyua(
              this.detailslistExportlist[i].expenditureNot
            );
            this.detailslistExportlist[i].expenditureRefund = this.amountyua(
              this.detailslistExportlist[i].expenditureRefund
            );
            this.detailslistExportlist[i].drawExpenditure = this.amountyua(
              this.detailslistExportlist[i].drawExpenditure
            );
            this.detailslistExportlist[i].freezeExpenditure = this.amountyua(
              this.detailslistExportlist[i].freezeExpenditure
            );
            this.detailslistExportlist[i].makeUpBadExpenditure = this.amountyua(
              this.detailslistExportlist[i].makeUpBadExpenditure
            );
            this.detailslistExportlist[i].profitLossBalance = this.amountyua(
              this.detailslistExportlist[i].profitLossBalance
            );
            this.detailslistExportlist[i].reviseExpenditure = this.amountyua(
              this.detailslistExportlist[i].reviseExpenditure
            );
            this.detailslistExportlist[i].badExpenditure = this.amountyua(
              this.detailslistExportlist[i].badExpenditure
            );
            this.detailslistExportlist[i].cardOriginBalance = this.amountyua(
              this.detailslistExportlist[i].cardOriginBalance
            );
            this.detailslistExportlist[i].newTotalBalance = this.amountyua(
              this.detailslistExportlist[i].newTotalBalance
            );
            this.detailslistExportlist[i].cardBalance = this.amountyua(
              this.detailslistExportlist[i].cardBalance
            );
          }
          console.log(this.detailslistExportlist);
          setTimeout(() => {
            this.export2Excel();
          }, 100);
        }
      });
    },
    formatJson(filterVal, jsonData) {
      return jsonData.map((v) => filterVal.map((j) => v[j]));
    },
    export2Excel() {
      const nowtime = this.getimeto();
      require.ensure([], () => {
        const { export_json_to_excel } = require("../../excel/Export2Excel");
        const multiHeader = [];
        const multiHeader2 = [];
        const merges = [];
        let tHeaderarr = [];
        // tHeaderarr.push('部门名称')
        if (this.formThead.userName.checked == true) {
          tHeaderarr.push(this.formThead.userName.label);
        }
        if (this.formThead.userNumber.checked == true) {
          tHeaderarr.push(this.formThead.userNumber.label);
        }
        if (this.formThead.depositMoney.checked == true) {
          tHeaderarr.push(this.formThead.depositMoney.label);
        }
        if (this.formThead.expenditureSum.checked == true) {
          tHeaderarr.push(this.formThead.expenditureSum.label);
        }
        if (this.formThead.expenditureNot.checked == true) {
          tHeaderarr.push(this.formThead.expenditureNot.label);
        }
        if (this.formThead.expenditureRefund.checked == true) {
          tHeaderarr.push(this.formThead.expenditureRefund.label);
        }
        if (this.formThead.drawExpenditure.checked == true) {
          tHeaderarr.push(this.formThead.drawExpenditure.label);
        }
        if (this.formThead.freezeExpenditure.checked == true) {
          tHeaderarr.push(this.formThead.freezeExpenditure.label);
        }
        if (this.formThead.makeUpBadExpenditure.checked == true) {
          tHeaderarr.push(this.formThead.makeUpBadExpenditure.label);
        }
        if (this.formThead.profitLossBalance.checked == true) {
          tHeaderarr.push(this.formThead.profitLossBalance.label);
        }
        if (this.formThead.reviseExpenditure.checked == true) {
          tHeaderarr.push(this.formThead.reviseExpenditure.label);
        }
        if (this.formThead.badExpenditure.checked == true) {
          tHeaderarr.push(this.formThead.badExpenditure.label);
        }
        if (this.formThead.cardOriginBalance.checked == true) {
          tHeaderarr.push(this.formThead.cardOriginBalance.label);
        }
        if (this.formThead.newTotalBalance.checked == true) {
          tHeaderarr.push(this.formThead.newTotalBalance.label);
        }
        if (this.formThead.cardBalance.checked == true) {
          tHeaderarr.push(this.formThead.cardBalance.label);
        }

        const tHeader = tHeaderarr;
        //
        let filterValArr = [];
        // filterValArr.push('departmentName')
        //  userName: {label: '姓名',prop: 'userName',checked:true},
        //       userNumber: {label: '编号',prop: 'userNumber',checked:true},
        //       depositMoney: {label: '存款总额',prop: 'depositMoney',checked:true},
        //       expenditureSum: {label: '消费总额',prop: 'expenditureSum',checked:true},
        //       expenditureNot: {label: '未处理的非确定交易',prop: 'expenditureNot',checked:true},
        //       expenditureRefund: {label: '退款总额',prop: 'expenditureRefund',checked:true},
        //       drawExpenditure: {label: '取款总额',prop: 'drawExpenditure',checked:true},
        //       freezeExpenditure: {label: '补冻总额',prop: 'freezeExpenditure',checked:true},
        //       makeUpBadExpenditure: {label: '补坏总额',prop: 'makeUpBadExpenditure',checked:true},
        //       profitLossBalance: {label: '损益总额',prop: 'profitLossBalance',checked:true},
        //       reviseExpenditure: {label: '修正总额',prop: 'reviseExpenditure',checked:true},
        //       badExpenditure: {label: '坏账总额',prop: 'badExpenditure',checked:true},
        //       cardOriginBalance: {label: '消费账期钱卡余额',prop: 'cardOriginBalance',checked:true},
        //       newTotalBalance: {label: '合计账上余额',prop: 'newTotalBalance',checked:true},
        //       cardBalance: {label: '卡上余额',prop: 'cardBalance',checked:true},
        if (this.formThead.userName.checked == true) {
          filterValArr.push(this.formThead.userName.prop);
        }
        if (this.formThead.userNumber.checked == true) {
          filterValArr.push(this.formThead.userNumber.prop);
        }
        if (this.formThead.depositMoney.checked == true) {
          filterValArr.push(this.formThead.depositMoney.prop);
        }
        if (this.formThead.expenditureSum.checked == true) {
          filterValArr.push(this.formThead.expenditureSum.prop);
        }
        if (this.formThead.expenditureNot.checked == true) {
          filterValArr.push(this.formThead.expenditureNot.prop);
        }
        if (this.formThead.expenditureRefund.checked == true) {
          filterValArr.push(this.formThead.expenditureRefund.prop);
        }
        if (this.formThead.drawExpenditure.checked == true) {
          filterValArr.push(this.formThead.drawExpenditure.prop);
        }
        if (this.formThead.freezeExpenditure.checked == true) {
          filterValArr.push(this.formThead.freezeExpenditure.prop);
        }
        if (this.formThead.makeUpBadExpenditure.checked == true) {
          filterValArr.push(this.formThead.makeUpBadExpenditure.prop);
        }
        if (this.formThead.profitLossBalance.checked == true) {
          filterValArr.push(this.formThead.profitLossBalance.prop);
        }
        if (this.formThead.reviseExpenditure.checked == true) {
          filterValArr.push(this.formThead.reviseExpenditure.prop);
        }
        if (this.formThead.badExpenditure.checked == true) {
          filterValArr.push(this.formThead.badExpenditure.prop);
        }
        if (this.formThead.cardOriginBalance.checked == true) {
          filterValArr.push(this.formThead.cardOriginBalance.prop);
        }
        if (this.formThead.newTotalBalance.checked == true) {
          filterValArr.push(this.formThead.newTotalBalance.prop);
        }
        if (this.formThead.cardBalance.checked == true) {
          filterValArr.push(this.formThead.cardBalance.prop);
        }

        const filterVal = filterValArr;
        const list = this.detailslistExportlist;
        const data = this.formatJson(filterVal, list);
        export_json_to_excel({
          multiHeader, //这里是第一行的表头
          multiHeader2, //这里是第二行的表头
          header: tHeader, //这里应该是算第三行的表头
          data,
          merges,
          filename: this.filename + nowtime,
        });
      });
    },
    handleSizeChange(val) {
      this.pageSize = val;
      this.detailspage();
    },
    handleCurrentChangepage(val) {
      this.pageNum = val;
      this.detailspage();
    },
    //消费平衡账表分页查询
    detailspage() {
      this.loading = true;
      this.searchInfo.unitGuid = this.changeschoolid;
      this.$http({
        url: this.$http.adornUrl("/terminal/consume/consume-balance-search"),
        method: "post",
        data: this.$http.adornData({
          messageContent: {
            pageNum: this.pageNum,
            pageSize: this.pageSize,
            searchInfo: this.searchInfo,
          },
          messageType: 0,
        }),
      }).then(({ data }) => {
        console.log(data);
        this.loading = false;
        if (data.messageCode == 200) {
          this.detailslist = data.messageContent.data;
          this.recordCount = data.messageContent.recordCount;
          this.currentPage = data.messageContent.pageNum;
        } else {
          this.$message.error(data.errorMessage);
        }
      });
    },
  },
};
</script>

<style lang="scss" scoped>
.balance_account {
  padding: 20px;
    //滚动条的宽度
  ::-webkit-scrollbar {
    width: 10px;
    height: 10px;
  }

  //滚动条的滑块
  ::-webkit-scrollbar-thumb {
    background-color: #a1a3a9;
    border-radius: 3px;
  }
  .el-table__row .el-table__row--level-1 {
    background-color: #e5e9f2;
  }
  .demo-form-inline,
  .demo-form-inline1 {
    height: 50px;
    width: 1234px;
    display: flex;
    /deep/.el-form-item__label {
      padding-right: 5px;
    }
    .el-form-item {
      margin-bottom: 0px;
    }
    .el-date-editor.el-input,
    .el-date-editor.el-input__inner {
      width: 350px;
    }
  }
  .demo-form-inline1 {
    border-bottom: 1px solid #e5e9f2;
    .searchmarigin {
      margin-left: 20px;
    }
  }
  .page {
    display: flex;
    justify-content: center;
    align-items: center;
  }
}
</style>